package com.day17.ex04;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class CopyTxtDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("D:\\java\\javaSE\\javaSE\\src\\com\\day17\\ex04\\test.txt");
        FileOutputStream fos=new FileOutputStream("D:\\java\\javaSE\\javaSE\\src\\com\\day17\\ex04\\test2.txt");
        int by;
        while((by=fis.read())!=-1){
            fos.write(by);
        }
        fos.close();
        fis.close();
    }
}
